import Mock from 'mockjs'

import {addData,getData,deleteData,editData,searchData} from '@/mock/personalTasks.js'

// 创建mock接口
// 增
Mock.mock('/addData',/get|post/i,addData);
// 编辑
Mock.mock('/editData',/get|post/i,editData);
// 获取数据
Mock.mock('/getData',/get|post/i,getData);
// 删除条目
Mock.mock('/deleteData',/get|post/i,deleteData);
// 关键字查询
Mock.mock('/searchData',/get|post/i,searchData);